<?php
// Defining application identifier
define('APP_ID', 'frontend');

// Defining php extension
define('PHP_EXT', '.php');

// Defining directory separator
define('DIR_SEP', '/');

// Defining root path
$root_path = realpath(dirname(__FILE__));
if (DIRECTORY_SEPARATOR != DIR_SEP) {
	$root_path = str_replace(DIRECTORY_SEPARATOR, DIR_SEP, $root_path);
}
define('ROOT_DIR', $root_path . DIR_SEP);

// Defining application directory
define('APP_DIR', ROOT_DIR . 'application' . DIR_SEP . APP_ID . DIR_SEP);

// Defining modules directory
define('MOD_DIR', ROOT_DIR . 'modules' . DIR_SEP);

// Defining system directory
define('SYS_DIR', ROOT_DIR . 'system' . DIR_SEP);

// Defining data directory
define('DATA_DIR', ROOT_DIR . 'data' . DIR_SEP);

// Defining public directory
define('PUB_DIR', ROOT_DIR);

// Pass control to framework
require_once(APP_DIR . 'bootstrap' . PHP_EXT);